/*
 * Project: com.mmall.user.provider.convert
 *
 * File Created at 2019-10-17
 *
 * Copyright 2019 CMCC Corporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * ZYHY Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license.
 */
package com.mmall.user.provider.convert;

import com.mmall.user.api.bo.UserBO;
import com.mmall.user.api.dto.UserDTO;
import com.mmall.user.provider.model.UserDO;
import org.mapstruct.Mapper;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

/**
 * @author jianghucoding
 * @date 2019-10-17
 */
@Mapper
public interface UserConvert {

    UserConvert INSTANCE = Mappers.getMapper(UserConvert.class);

    @Mappings({})
    UserBO convert(UserDO userDO);

    @Mappings({})
    UserDO convert(UserDTO userDTO);
}
